<?php
require_once 'shujuku.php';
header("content-type:text/html;charset=utf-8");
$id = $_POST['id'];
$id = intval($id);

$name = $_POST['name'];
$sex = $_POST['sex'];
$liuyan = $_POST['liuyan'];
$touxiang = $_POST['touxiang'];

$sql = "UPDATE 'erciyuan'.'girl'
    SET
    'name' = '$name',
    'sex' = '$sex',
    'content' = '$liuyan',
    'avater' = '$touxiang',
WHERE 'girl'.'id' = $id;";
$result = $conn->query($sql);
print_r($result);

